package la.bbs558.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import la.bbs558.entity.UserData;
import la.bbs558.entity.vo.UserDataVO;
import la.bbs558.entity.params.UserDataForAdminPage;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表(UserData)表数据库访问层
 *
 * @author weihanmin
 * @since 2023-12-15 16:15:23
 */
public interface UserDataDao extends BaseMapper<UserData> {

    void updateUserDataPoints(@Param("uid") Long userId, @Param("pt") Integer points);

    Page<UserDataVO> selectListForAdmin(UserDataForAdminPage page);
}

